package cn.wolfcode.wechat.service;

import cn.wolfcode.wechat.domain.Account;
import cn.wolfcode.wechat.domain.Client;
import cn.wolfcode.wechat.domain.Recharge;
import cn.wolfcode.wechat.query.RechargeQueryObject;
import com.github.pagehelper.PageInfo;

public interface IRechargeService {

    int save(Recharge recharge);

    int update(Recharge recharge);

    Recharge get(Long id);


    PageInfo queryPage(RechargeQueryObject qo);

    Long getClientIdByOpenId(String openId);

    void audit(Long id, int state, String remark);

    void rechargeSave(Recharge recharge, String openId);

    Client getClientByOpenId(String openId);

    Account getAccountByClientId(Long id);
}
